Skip to content

feat: batch ops, stale UX, review_days default#9

Merged
bburda merged 7 commits intomainfrom
feat/evolve-improvements
Apr 2, 2026
Merged

feat: batch ops, stale UX, review_days default#9
bburda merged 7 commits intomainfrom
feat/evolve-improvements

Conversation

@bburda
Copy link
Copy Markdown
Owner

@bburda bburda commented Apr 2, 2026

Summary

  • Increase default review_days from 30 to 90 - reduces stale memory backlog that grows faster than review capacity
  • Add rebuild option to memory_deprecate MCP tool (matches memory_add behavior)
  • Batch deprecate: accept ids param (comma-separated) for deprecating multiple memories in one call
  • memory_stale --body: show truncated body preview (first 200 chars) inline during triage
  • memory_stale --renew N: bulk-renew review_after dates on all stale memories by N days

Test plan

  • 131/131 unit + MCP server tests pass
  • Manual test: memory stale --body shows body previews
  • Manual test: memory stale --renew 90 renews dates
  • Manual test: memory deprecate --ids ID1,ID2 batch deprecates

Copilot AI review requested due to automatic review settings April 2, 2026 13:36
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances the AI Memory Protocol’s maintenance/triage workflow by increasing the default review cadence, adding batch operations for deprecations, and improving stale-memory review UX across both the CLI and MCP server.

Changes:

  • Increase default review_days from 30 → 90 (RST directive generation, CLI defaults, MCP tool schema defaults).
  • Add batch deprecation support (ids / --ids) and MCP-side optional auto-rebuild (rebuild).
  • Extend stale-memory listing with optional body previews and bulk renewal of review_after dates.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 11 comments.

File Description
src/ai_memory_protocol/rst.py Updates the default review window used when generating new memory directives.
src/ai_memory_protocol/mcp_server.py Updates MCP schemas/defaults and adds batch deprecate + stale UX/renew handler logic.
src/ai_memory_protocol/cli.py Adds CLI batch deprecate and stale UX/renew flags; updates default review-days.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@bburda bburda self-assigned this Apr 2, 2026
@bburda bburda merged commit 9d6339a into main Apr 2, 2026
6 checks passed
@bburda bburda deleted the feat/evolve-improvements branch April 2, 2026 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants